package com.springcloud.demo.serviceribbon.controller;

import com.springcloud.demo.serviceribbon.service.HiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouyang
 * @Description
 * @date 2018/08/07
 */
@RestController
public class HiController {

    @Autowired
    HiService hiService;

    @GetMapping("hi")
    public String hi(String name){
        return hiService.hello(name);
    }

}
